///////////////////////////////////////////////////////////////////////////////
// Project: Hoyo Client Game
//
// hy_create_role_logic.h
// Created: 2013-7-15
// Author: Like Cheng
///////////////////////////////////////////////////////////////////////////////
#pragma once
#include "hy_includes.h"

class hy_player_data;
class hy_create_role_logic : public hy_object
{
public:
	hy_create_role_logic();
	virtual ~hy_create_role_logic();

	typedef std::map< int, hy_player_data* >	hy_init_player_map;

	static hy_create_role_logic*	instance();
	static void					purge_instance();

	bool						init_load_db();
public:
	bool						send_role_init_info( void* mg );
	bool						create_role_random_name( void* mg );
	bool						create_player( void* );

public:
	hy_player_data*				get_player_data_by_occup( int occup );
	
private:
	string_vec					m_first_name;
	string_vec					m_last_name;
	Json::Value					m_value;
	

	hy_init_player_map			m_init_player_map;

};